package com.linked.basemanage.switchsetting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.linked.basemanage.base.bean.param.SwitchSettingPageParam;
import com.linked.basemanage.base.bean.po.SwitchInfoPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :dbq
 * @date : 2022/11/24 8:38
 */
@Mapper
public interface ISwitchSettingMapper extends BaseMapper<SwitchInfoPO> {
    IPage<SwitchInfoPO> querySwtichSettingPage(@Param("param") SwitchSettingPageParam param);

    SwitchInfoPO findSwitchByName(@Param("switchName") String switchName);

    List<SwitchInfoPO> querySwitchList(@Param("param") SwitchInfoPO param);

    SwitchInfoPO findSwitchByCode(@Param("switchCode") String switchCode);
}
